cmake_minimum_required(VERSION 3.20)
project(TicTacToe)

# 设置 C++ 标准
set(CMAKE_CXX_STANDARD 20)

# 生成可执行文件
add_executable(${PROJECT_NAME} main.cpp
        GameState.cpp
        GameState.h
        GameLogic.cpp
        GameLogic.h
        GameRenderer.cpp
        GameRenderer.h)

if(MSVC)
    # 指定库文件路径
    target_link_directories(${PROJECT_NAME} PRIVATE
            "D:/Soft/Microsoft Visual Studio/VC/Auxiliary/VS/lib/x64"
    )

    # 链接库文件
    target_link_libraries(${PROJECT_NAME} PRIVATE
            EasyXw.lib
    )

    # 启用 Unicode 支持
    add_definitions(-DUNICODE -D_UNICODE)
endif()